/*
 * URLHistory.cpp
 *
 *  Created on: Mar 8, 2011
 *      Author: cnwilson
 */

#include "../inc/URLHistory.h"

		URLHistory::URLHistory(){

		}

		URLHistory::~URLHistory(){

		}

		bool URLHistory::add(URL &site){
			if (!contains(site)){
				history.Insert(site);
				return true;
			}
			return false;
		}

		bool URLHistory::contains(URL &site){
			return (history.FindItem(site)!=NULL);
		}
